{extend name="public/base"/}
 {block name="content"}
  <section class="content" style="height:580px">
            <div class="col-md-9" style="width:100%;">
              <div class="box box-default">
                <div class="box-header with-border">
                <h3 class="box-title">
				<a href="{:U('Message/index')}" class="btn btn-primary">留言管理列表</a>
				</h3>
				
				 <h3 class="box-title">
				<a href="{:U('Message/addmessage')}" class="btn btn-primary">增加留言</a>
				</h3>
				
				 <h3 class="box-title">
				<a href="{:U('Message/mType')}" class="btn btn-primary">留言类别</a>
				</h3>
				
				<h3 class="box-title">
				<a href="{:U('Message/addType')}" class="btn btn-primary">添加留言类别</a>
				</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <!-- form start -->
                 
					{switch name="$scan['message_type']" }
					{case value="11"}
					<form action="{:U('Message/give_postScan')}" method="post">
					 {/case}
					 {case value="12"}
					 <form action="{:U('Message/xuqiu_postScan')}" method="post">
					  {/case}
					  
					 {default /}
					   <form action="{:U('Message/postScan')}" method="post">
					{/switch}
					<input type="hidden" name="id" value="{$scan.id}" >
					<input type="hidden" name="status" value="0" >
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-12">
					
					<!-- 根据留言类型显示不同效果 -->
					{switch name="$scan['message_type']" }
					{case value="11"}
					 <!-- 如果是给我留言，走如下 -->
					<table class="table table-bordered">
                        <tr>
                            <th width="140">姓名:</th>
                            <td><input class="form-control" type="text" name="title" value="{$scan.title}" size="30"></td>
                        </tr>
						                        <tr>
                            <th width="140">公司名称:</th>
                            <td><input class="form-control" type="text" name="name" value="{$scan.name}" size="30"></td>
                        </tr>
						                        <tr>
                            <th width="140">联系电话:</th>
                            <td><input class="form-control" type="text" name="phone" value="{$scan.phone}" size="30"></td>
                        </tr>
						                        <tr>
                            <th width="140">联系邮箱:</th>
                            <td><input class="form-control" type="text" name="email" value="{$scan.email}" size="30"></td>
                        </tr>
						<!-- 判断是否有内容 -->
						 <tr>
                            <th width="140">留言内容:</th>
                            <td><textarea class="form-control" rows="15" name="content" >{$scan.content}</textarea></td>
                        </tr>
												
						<tr>
                            <th width="140">留言回复:</th>
                            <td><textarea class="form-control" rows="15" name="replay_msg" >{$scan.replay_msg}</textarea></td>
                        </tr>
												<tr>
                            <th width="140">资料信息:</th>
                            <td><img src="__UPLOADS__{$scan.ziliao}"></td>
                        </tr>
												<tr>
                            <th width="140">标记已读:</th>
                          <td><input name="status" class="status" type="checkbox" 
					{if condition="( $scan['status'] eq 1)"}checked{/if} value="1" /></td>
                        </tr>
 
                      </table>
					  {/case}
						<!-- 判断是否有内容 END -->

                        {case value="12"}
                      <table class="table table-bordered">
                        <tr>
                            <th width="140">需求类别:</th>
                            <td><input class="form-control" type="text" name="xqlb" value="{$scan.xqlb}" size="30"></td>
                        </tr>
						 <tr>
                            <th width="140">需求名称:</th>
                            <td><input class="form-control" type="text" name="xqname" value="{$scan.xqname}" size="30"></td>
                        </tr>
						   <tr>
                            <th width="140">姓名:</th>
                            <td><input class="form-control" type="text" name="name" value="{$scan.name}" size="30"></td>
                        </tr>
                        <tr>
                            <th width="140">单位:</th>
                            <td><input class="form-control" type="text" name="title" value="{$scan.title}" size="30"></td>
                        </tr>
                        <tr>
                            <th width="140">单位电话:</th>
                            <td><input class="form-control" type="text" name="phone" value="{$scan.phone}" size="30"></td>
                        </tr>
                        <tr>
                            <th width="140">单位邮箱:</th>
                            <td><input class="form-control" type="text" name="email" value="{$scan.email}" size="30"></td>
                        </tr>
                        <tr>
                            <th width="140">单位简介:</th>
                            <td><textarea class="form-control" rows="10" name="dwjj" >{$scan.dwjj}</textarea></td>
                        </tr>
                        <tr>
                            <th width="140">需求简介:</th>
                            <td><textarea class="form-control" rows="10" name="xqjj" >{$scan.xqjj}</textarea></td>
                        </tr>	
                        <tr>
                            <th width="140">现有基础条件:</th>
                            <td><input class="form-control" type="text" name="jctj" value="{$scan.jctj}" size="30"></td>
                        </tr>
						<tr>
                            <th width="140">期望合作方式:</th>
                            <td><input class="form-control" type="text" name="hzfs" value="{$scan.hzfs}" size="30"></td>
                        </tr>
						
						
						<tr>
                            <th width="140">标记已读:</th>
                          <td><input name="status" class="status" type="checkbox" 
					{if condition="( $scan['status'] eq 1)"}checked{/if} value="1" /></td>
                        </tr>
 
                      </table>
					   {/case}
					   
					   {default /}
					   <!-- 如果是首页的三种类型走下面流程 -->
					     <table class="table table-bordered">
                        <tr>
                            <th width="140">单位名称2:</th>
                            <td><input class="form-control" type="text" name="title" value="{$scan.title}" size="30"></td>
                        </tr>
						                        <tr>
                            <th width="140">称呼:</th>
                            <td><input class="form-control" type="text" name="name" value="{$scan.name}" size="30"></td>
                        </tr>
						                        <tr>
                            <th width="140">联系电话:</th>
                            <td><input class="form-control" type="text" name="phone" value="{$scan.phone}" size="30"></td>
                        </tr>
						                        <tr>
                            <th width="140">电子邮箱:</th>
                            <td><input class="form-control" type="text" name="email" value="{$scan.email}" size="30"></td>
                        </tr>
						<!-- 判断是否有内容 -->

						<!-- 判断是否有内容 END -->

						<tr>
                            <th width="140">标记已读:</th>
                          <td><input name="status" class="status" type="checkbox" 
					{if condition="( $scan['status'] eq 1)"}checked{/if} value="1" /></td>
                        </tr>
 
                      </table>
					  
					  {/switch}
					  <!-- 根据留言类型显示不同效果 -->
					  
                    </div>
				<div class="box-footer">
                  <button type="submit" class="btn btn-primary">确认</button>
                </div>
                  </div>

                </div>
				</form>
				

              
              </div><!-- /.box -->
            </div>
			<!-- /.col -->
			</section>
 {/block}